﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MealBooking.Core.Models.Meals;
using MealBooking.Core.Models.Dishes;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ThisIsFirstTest.Models.MealModel
{
    public class NewMealModel
    {
        public string CategoryId { get; set; }
        public List<string> DishIds { get; set; }
    }
    public class MealCategoryModel
    {
        public string Id { get; set; }
        [Required]
        [AllowHtml]
        //[RegularExpression("(^([\u4e00-\u9fa5]+|[a-zA-Z0-9]+)$){1,16}", ErrorMessage = "only letter and number, length is 2-16.")]
        public string Name { get; set; }
        public double Price { get; set; }
        public List<DishTemplate> DishTemplates { get; set; }
        public string Description { get; set; }
    }
}